<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/12/16/016
 * Time: 20:59
 */

namespace app\api\controller\v1;


use cmf\controller\HomeBaseController;
use think\Db;

/**
 * Class DataController 大数据控制器
 * @package app\api\controller\v1
 */
class DataController extends HomeBaseController
{
    /**
     * 获取大数据
     * @url /api/v1/data
     * @return array of data
     */
    public function index()
    {
        $data = Db::name('big_data')->where('id','=',72)->find();
        return json($data);
    }
}